const express = require("express");
const cors = require("cors");
const app = express();
app.use(cors());

app.get("/", function (req, res) {
  let list = [
    { name: "ws", id: new Date() },
    { name: "ws", id: new Date() },
    { name: "ws", id: new Date() },
    { name: "ws", id: new Date() },
  ];
  res.send(list);
});

app.listen(3000);
